﻿using Hotel.Application.Admins.Dto;
using Hotel.Domain;

namespace Hotel.Application.Admins
{
    public interface IAdminService : IBaseService<Admin, AdminCreateUpdateDto, AdminListDto>
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ResultDto> LoginAsync(LoginDto dto);
        /// <summary>
        /// 判断是否存在用户
        /// </summary>
        /// <param name="UserName"></param>
        /// <returns></returns>
        Task<ResultDto<bool>> CheckName(string UserName, long AdminId);
    }
}